package main

import (
	"fmt"
)

func swap(a *int, b *int) {
	tmp := *a
	*a = *b
	*b = tmp
}

func swap1(a int, b int) (int, int) {
	return b, a
}

func test() {
	var a int8 = 100
	var b int16 = int16(a)
	fmt.Println(a)
	fmt.Println(b)
}
func main() {
	first := 100
	second := 200
	// first, second = second, first
	// fmt.Println(first)
	// fmt.Println(second)

	// swap(&first, &second)
	first, second = swap1(first, second)
	fmt.Println(first)
	fmt.Println(second)

	test()
}
